package com.tony.pmp.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tony.pmp.model.entity.SysUserPostEntity;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: SysUserPostService
 * @Auther: 皮蛋布丁
 * @Date: 2021/07/26/11:37
 * @Description:
 */
public interface SysUserPostService extends IService<SysUserPostEntity> {

    /**
    * @Description: getPostNameByUserId 根据id获取用户岗位信息
    * @Param: [userId]
    * @return: java.lang.String
    * @Author: 皮蛋布丁
    * @Date: 2021/7/26 11:44
    */
    String getPostNameByUserId(Long userId);

    /**
    * @Description: saveOrUpdate 新增用户岗位信息
    * @Param: [userId, postIds]
    * @return: boolean
    * @Author: 皮蛋布丁
    * @Date: 2021/7/26 14:45
    */
    boolean saveOrUpdate(Long userId, List<Long> postIds);

    /**
    * @Description: queryPostIdList 根据userId获取用户岗位信息
    * @Param: [userId]
    * @return: java.util.List<java.lang.Long>
    * @Author: 皮蛋布丁
    * @Date: 2021/7/26 21:30
    */
    List<Long> queryPostIdList(Long userId);
}
